﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminSite/AdminSite.Master" AutoEventWireup="true"
    CodeBehind="UpdateEmployeeInfo.aspx.cs" Inherits="InsuranceVehicle.AdminSite.UpdateEmployeeInfo" %>

<%@ Register Src="Menu.ascx" TagName="Menu" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="pageTitle" runat="server">
    Update Employee Infomation
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="menuPlace" runat="server">
    <uc1:Menu ID="Menu1" runat="server" SelectedMenu="update_info" ShowElement="all" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="breadCrumb" runat="server">
    Update Employee Infomation
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="titleContent" runat="server">
    Update Employee Infomation
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="mainContent" runat="server">
    <div class="contentinner">
        <asp:Panel ID="panelUpdateInfo" runat="server">
            <h4 class="widgettitle nomargin shadowed">
                Your Infomation</h4>
            <div class="widgetcontent bordered shadowed nopadding">
                <div class="stdform stdform2">
                    <p>
                        <label>
                            First Name</label>
                        <span class="field">
                            <asp:TextBox ID="txtFirstname" CssClass="input-xlarge" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ForeColor="Red"
                                Display="Dynamic" ErrorMessage="Firstname is not empty" SetFocusOnError="True"
                                ControlToValidate="txtFirstname" Font-Italic="True"></asp:RequiredFieldValidator>
                        </span>
                    </p>
                    <p>
                        <label>
                            Last Name</label>
                        <span class="field">
                            <asp:TextBox ID="txtLastname" CssClass="input-xlarge" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Lastname is not empty"
                                Display="Dynamic" ControlToValidate="txtLastname" SetFocusOnError="True" ForeColor="Red"
                                Font-Italic="True"></asp:RequiredFieldValidator>
                        </span>
                    </p>
                    <p>
                        <label>
                            Day of birth</label>
                        <span class="field">
                            <asp:DropDownList ID="cbbMonth" runat="server" class="uniformselect" Style="width: 90px">
                            </asp:DropDownList>
                            &nbsp;&nbsp;&nbsp;
                            <asp:DropDownList ID="cbbDay" runat="server" class="uniformselect" Style="width: 90px">
                            </asp:DropDownList>
                            &nbsp;&nbsp;&nbsp;
                            <asp:DropDownList ID="cbbYear" runat="server" class="uniformselect" Style="width: 90px">
                            </asp:DropDownList>
                        </span>
                    </p>
                    <p>
                        <label>
                            Address</label>
                        <span class="field">
                            <asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine" Width="270px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Address is not empty"
                                ForeColor="Red" Display="Dynamic" ControlToValidate="txtAddress" Font-Italic="True"
                                SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </span>
                    </p>
                    <p>
                        <label>
                            Phone</label>
                        <span class="field">
                            <asp:TextBox ID="txtPhone" CssClass="input-xlarge" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Phone number is not empty"
                                Display="Dynamic" ForeColor="Red" ControlToValidate="txtPhone" SetFocusOnError="True"
                                Font-Italic="True"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" SetFocusOnError="True"
                                ValidationExpression="^[0-9]+$" Display="Dynamic" ErrorMessage="Phone number must be a numberic"
                                ControlToValidate="txtPhone" ForeColor="Red" Font-Italic="True"></asp:RegularExpressionValidator>
                        </span>
                    </p>
                    <p>
                        <label>
                            Email</label>
                        <span class="field">
                            <asp:TextBox ID="txtEmail" CssClass="input-xlarge" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="Email is not empty"
                                ControlToValidate="txtEmail" Display="Dynamic" ForeColor="Red" SetFocusOnError="True"
                                Font-Italic="True"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Email is incorrect"
                                ControlToValidate="txtEmail" Display="Dynamic" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                Font-Italic="True"></asp:RegularExpressionValidator>
                            <asp:Label ID="lblErrEmail" ForeColor="Red" runat="server" Font-Italic="True"></asp:Label>
                        </span>
                    </p>
                    <p>
                        <label>
                        </label>
                        <span class="field">
                            <asp:Button ID="btnSubmit" runat="server" Text="Submit" class="btn btn-primary" Width="100px"
                                OnClick="btnSubmit_Click" />
                                <asp:Label ID="lblSuccess" Visible="False" runat="server" Font-Italic="True" ForeColor="Red"></asp:Label>
                        </span>
                    </p>
                </div>
            </div>
        </asp:Panel>
    </div>
</asp:Content>
